<?php
class tag_type extends Model{
	public static function getTableName(){
		return 'tag_type';
	}
	
	public function findByInSql($instr)
	{
		$sql = "select * from tag_type where id in(".$instr.")";
		return Model::$dbo['r']->findBySql(__class__, $sql);
	}

    /**
     * get proofread SQL param
     * @param   $id Int
     * @return  Array
     */
    public function getProofread($id)
    {
        if (empty($id)) return  NULL;
        $sqlArr =   array(
                    'tag_type'  =>  array('id = "'. $id. '"'),
                );

        $sqlArray   =   NULL;
        foreach ($sqlArr    as  $tableName  =>  $whereArray)
        {
            $sqlArray[$tableName]   =   Model::assembleGetProofreadSql($tableName, $whereArray);
        }
        return  $sqlArray;
    }

}
?>
